window.URLbase = "https://mylog.cool"
// window.URLbase = "https://localhost"
window.URLheader = URLbase + ":8080"

window.Bucket = 'bit-1310383539';  /* 存储桶 */
window.Region = 'ap-chengdu';     /* 所在地域 */
window.BucketURL = "https://" + Bucket + ".cos." + Region + ".myqcloud.com"

// 将常用的直接挂到windows上
import { ref, reactive } from "vue";
window.ref = ref; window.reactive = reactive;
import { myPost } from '@/hook/universality'
window.myPost = myPost
import { ElMessage } from "element-plus";
window.ElMessage = window.myMsg = ElMessage
window.myMsgS = (message) => ElMessage({ message, type: 'success' })
window.myMsgW = (message) => ElMessage({ message, type: 'warning' })
window.myMsgE = (message) => ElMessage.error(message)

import { createApp } from 'vue'
import App from './App.vue'
import router from '@/hook/router.js'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'  // element ui 中文包
import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/dark/css-vars.css' // elementUI 黑暗模式
// import 'default-passive-events'  // element ui 控制台警告


createApp(App)
  .use(router)
  .use(createPinia())
  .use(ElementPlus, { locale: zhCn })
  .mount('#app')
